import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './css/common.css'
import './css/rem.scss'
import animated from 'animate.css'
import { focus, preventReClick } from '@/directives'
// 插件的使用
// import myPlugin from '@/plugin/index'
import myPlugins from './plugin'
import './components'
Vue.use(myPlugins)
// 全局方法的使用
// Vue.globalMethods()

// 全局注册自定义指令
Vue.directive('focus', focus)
Vue.directive('preventReClick', preventReClick)
Vue.use(animated)
Vue.use(ElementUI)
Vue.config.keyCodes = {
	f2: 113,
	ling: 48
}
Vue.config.productionTip = false
import * as utils from '@/utils/export'
Vue.prototype.$utils = utils
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
